<?php /*a:2:{s:80:"/www/wwwroot/test.usdtes.vip/test/application/adminabc/view/website/profile.html";i:1678364214;s:77:"/www/wwwroot/test.usdtes.vip/test/application/adminabc/view/public/style.html";i:1678364220;}*/ ?>
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>欢迎页面</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
<link rel="stylesheet" href="/static/admin/css/font.css">
<link rel="stylesheet" href="/static/admin/css/xadmin.css">
<script type="text/javascript"	src="/static/admin/js/jquery.min.js"></script>
<script src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
<script type="text/javascript" src="/static/admin/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/plugin/webuploader/webuploader.css">
<script type="text/javascript" src="/plugin/webuploader/webuploader.js"></script>
<script type="text/javascript" src="/plugin/clipboard/clipboard.js"></script>
<!--[if lt IE 9]>
  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
function uploadimg(f1,f2,f3) {
	//f2 = "'" + f2 + "'";
	//alert(f2);
	var $list =$(f1);
	var thumbnailWidth = 150;
	var thumbnailHeight = 150;
	// 初始化Web Uploader
	var uploader = WebUploader.create({
		// 选完文件后，是否自动上传。
		auto: true,
		// swf文件路径
		swf: '/plugin/webuploader/Uploader.swf',
		// 文件接收服务端。
		server: '/plugin/uploadify/uploader.php',
		// 选择文件的按钮。可选。
		// 内部根据当前运行是创建，可能是input元素，也可能是flash.
		pick: f2,
		// 只允许选择图片文件。
		accept: {
			title: 'Images',
			extensions: 'gif,jpg,jpeg,bmp,png',
			mimeTypes: 'image/*'
		}
	});
	// 当有文件添加进来的时候
	uploader.on( 'fileQueued', function( file ) {
	    var $li = $('<div id="' + file.id + '" class="file-item thumbnail">' +  '<img></div>'),
	        $img = $li.find('img');
	    
	    // $list为容器jQuery实例
	    $list.html( $li );

	    // 创建缩略图
	    // 如果为非图片文件，可以不用调用此方法。
	    // thumbnailWidth x thumbnailHeight 为 100 x 100
	    uploader.makeThumb( file, function( error, src ) {
	        if ( error ) {
	            $img.replaceWith('<span>不能预览</span>');
	            return;
	        }
	        $img.attr( 'src', src );
	    }, thumbnailWidth, thumbnailHeight );
	});
	uploader.on('uploadSuccess', function(file, response){
		  $(f3).val(response._raw);
	});
}
</script>
<script type="text/javascript" src="/plugin/kindeditor/kindeditor.js"></script>
<script type="text/javascript">
var editor;
KindEditor.ready(function (k) {
	editor = k.create('textarea[name="recharge_content"]', {
		resizeType: 1,
		allowPreviewEmoticons: false,
		allowImageUpload: true,
		allowFlashUpload: true,
		autoHeightMode: true,
		afterCreate: function () {
			this.loadPlugin('autoheight');
		}
	});
	editor = k.create('textarea[name="recharge_example"]', {
		resizeType: 1,
		allowPreviewEmoticons: false,
		allowImageUpload: true,
		allowFlashUpload: true,
		autoHeightMode: true,
		afterCreate: function () {
			this.loadPlugin('autoheight');
		}
	});
	editor = k.create('textarea[name="links"]', {
		resizeType: 1,
		allowPreviewEmoticons: false,
		allowImageUpload: true,
		allowFlashUpload: true,
		autoHeightMode: true,
		afterCreate: function () {
			this.loadPlugin('autoheight');
		}
	});
})
$(document).ready(function(){
	layui.use('form', function() {
	var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
			//……

			//但是，如果你的HTML是动态生成的，自动渲染就会失效
			//因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
		form.render();
	});
	uploadimg('.fileQueued1','#filePicker1',"input[name='thumb']");
	uploadimg('.fileQueued2','#filePicker2',"input[name='trc20_qr']");
	uploadimg('.fileQueued3','#filePicker3',"input[name='erc20_qr']");
})
</script>
</head>
<body>
	<div class="x-nav">
		<span class="layui-breadcrumb">
			<a href="">首页</a>
			<a href="">基础管理</a>
			<a><cite>站点设置</cite></a>
		</span>
		<a class="layui-btn layui-btn-small" style="line-height: 1.6em; margin-top: 3px; float: right" onclick="location.reload()" title="刷新">
			<i class="layui-icon layui-icon-refresh" style="line-height: 30px"></i>
		</a>
	</div>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-card">
				<div class="layui-card-body layui-table-body layui-table-main">
					<form class="layui-form" role="form" method="post" id="form-article-add" action="">
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>站点名称：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="webname" value="<?php echo htmlentities($info['webname']); ?>" lay-verify="required" placeholder="请输入网站名称">
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>转账手续费：
							</label>
							<div class="layui-input-inline">
								<input type="text" class="layui-input" id="example-text-input" name="transfer_fee" value="<?php echo htmlentities((isset($info['transfer_fee']) && ($info['transfer_fee'] !== '')?$info['transfer_fee']:0)); ?>" lay-verify="required" placeholder="请输入数字">
							</div>
							<div class="layui-form-mid layui-word-aux">%</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">网址LOGO：</label>
							<div class="layui-input-inline">
								<input type="hidden" name="thumb" id="thumb" value="<?php echo htmlentities($info['thumb']); ?>" id="form-field-2" placeholder="" class="layui-input">
								<div id="uploader" class="wu-example">
									<div id="fileList" class="uploader-list"></div>
									<div id="filePicker1">选择图片</div>
									<div class='fileQueued1'>
										<notempty name="info.thumb"> <img src="<?php echo htmlentities($info['thumb']); ?>" style="width: 150px;"></notempty>
									</div>
								</div>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>TRC20地址：								
							</label>
							<div class="layui-input-block">
								<input   class="layui-input" id="example-text-input" name="trc20_key" value="<?php echo htmlentities($info['trc20_key']); ?>"  placeholder="请输入钱包地址">
							</div>
						</div>	
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">TRC20二维码：</label>
							<div class="layui-input-inline">
								<input type="hidden" name="trc20_qr" id="thumb" value="<?php echo htmlentities($info['trc20_qr']); ?>" id="form-field-2" placeholder="" class="layui-input">
								<div id="uploader" class="wu-example">
									<div id="fileList" class="uploader-list"></div>
									<div id="filePicker2">选择二维码</div>
									<div class='fileQueued2'>
										<notempty name="info.trc20_qr"> <img src="<?php echo htmlentities($info['trc20_qr']); ?>" style="width: 150px;"></notempty>
									</div>
								</div>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>ERC20地址：								
							</label>
							<div class="layui-input-block">
								<input   class="layui-input" id="example-text-input" name="erc20_key" value="<?php echo htmlentities($info['erc20_key']); ?>"  placeholder="请输入钱包地址">
							</div>
						</div>	
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">ERC20二维码：</label>
							<div class="layui-input-inline">
								<input type="hidden" name="erc20_qr" id="thumb" value="<?php echo htmlentities($info['erc20_qr']); ?>" id="form-field-2" placeholder="" class="layui-input">
								<div id="uploader" class="wu-example">
									<div id="fileList" class="uploader-list"></div>
									<div id="filePicker3">选择二维码</div>
									<div class='fileQueued3'>
										<notempty name="info.erc20_qr"> <img src="<?php echo htmlentities($info['erc20_qr']); ?>" style="width: 150px;"></notempty>
									</div>
								</div>
							</div>
						</div>												
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>充值教程：								
							</label>
							<div class="layui-input-block">
								<textarea   class="layui-textarea" id="example-text-input" name="recharge_example"  placeholder="请输入文字"><?php echo $info['recharge_example']; ?></textarea>
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>友情链接：								
							</label>
							<div class="layui-input-block">
								<textarea   class="layui-textarea" id="example-text-input" name="links"  placeholder="请输入文字"><?php echo $info['links']; ?></textarea>
							</div>
						</div>			
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">营业状态： </label>
							<div class="layui-input-block">
								<input type="radio" name="open_status" value="1" title="上班" <?php if($info['open_status'] == '1'): ?>checked="" <?php endif; if(empty($info['open_status']) || (($info['open_status'] instanceof \think\Collection || $info['open_status'] instanceof \think\Paginator ) && $info['open_status']->isEmpty())): ?>checked=""<?php endif; ?>>
								<input type="radio" name="open_status" value="0" title="下班" <?php if($info['open_status'] == '0'): ?>checked=""<?php endif; ?>>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>营业说明文字：								
							</label>
							<div class="layui-input-block">
								<textarea   class="layui-textarea" id="example-text-input" name="open_msg" lay-verify="required" placeholder="请输入文字"><?php echo htmlentities($info['open_msg']); ?></textarea>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">在线客服代码：</label>
							<div class="layui-input-block">
								<textarea   class="layui-textarea" id="example-text-input" name="kefu"  placeholder="请输入客服代码"><?php echo htmlentities($info['kefu']); ?></textarea>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>SMTP服务器地址：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_host" value="<?php echo htmlentities($info['mail_host']); ?>" lay-verify="required" placeholder="">
							</div>
						</div>
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>发件邮箱地址：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_from" value="<?php echo htmlentities($info['mail_from']); ?>" lay-verify="required" placeholder="">
							</div>
						</div>											
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>邮箱账号：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_username" value="<?php echo htmlentities($info['mail_username']); ?>" lay-verify="required" placeholder="">
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>邮箱密码：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_password" value="<?php echo htmlentities($info['mail_password']); ?>" lay-verify="required" placeholder="">
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>发件人名称：
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" id="example-text-input" name="mail_fromname" value="<?php echo htmlentities($info['mail_fromname']); ?>" lay-verify="required" placeholder="">
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>SSL协议：
							</label>
							<div class="layui-input-block">
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_secure" value="SSL" title="SSL" <?php if($info['smtp_secure'] == 'SSL'): ?>checked="checked"<?php endif; ?>>
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_secure" value="TLS" title="TLS" <?php if($info['smtp_secure'] == 'TLS'): ?>checked="checked"<?php endif; ?>>
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">
								<span class="x-red">*</span>SSL端口：
							</label>
							<div class="layui-input-block">
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_port" value="25" title="25" <?php if($info['smtp_port'] == '25'): ?>checked="checked"<?php endif; ?>>
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_port" value="465" title="465" <?php if($info['smtp_port'] == '465'): ?>checked="checked"<?php endif; ?>>
								<input type="radio" class="layui-input" id="example-text-input" name="smtp_port" value="587" title="587" <?php if($info['smtp_port'] == '587'): ?>checked="checked"<?php endif; ?>>
							</div>
						</div>						
						<div class="layui-form-item">
							<label for="username" class="layui-form-label">状态： </label>
							<div class="layui-input-block">
								<input type="radio" name="status" value="1" title="开启" <?php if($info['status'] == '1'): ?>checked=""<?php endif; if(empty($info['status']) || (($info['status'] instanceof \think\Collection || $info['status'] instanceof \think\Paginator ) && $info['status']->isEmpty())): ?>checked=""<?php endif; ?>>
								<input type="radio" name="status" value="0" title="关闭" <?php if($info['status'] == '0'): ?>checked=""<?php endif; ?>>
							</div>
						</div>
						<div class="layui-form-item">
							<label for="L_repass" class="layui-form-label"> </label>
							<button class="layui-btn" lay-filter="add" lay-submit="">保 存</button>
						</div>
					</form>
				</div>
			</div>
		</div>
		<include file="Public/footer" />
	</div>
</body>
</html>